body {
    width: 300px;
    padding: 10px;
}

input[type="range"] {
    width: 100%;
}


/* 为页面设置全局背景色和字体样式 */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 标题样式 */
h2 {
    font-weight: 400;
    color: #444;
    text-align: center;
    margin-bottom: 20px;
}

/* 输入容器样式 */
div {
    background-color: #fff;
    padding: 15px;
    margin: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 300px;
    box-sizing: border-box;
}

/* 标签和显示值的样式 */
label {
    display: block;
    margin-bottom: 5px;
    color: #555;
}

#volumeValue, input[type="number"] {
    font-size: 16px;
    margin-top: 5px;
    color: #333;
}

/* 输入类型的样式 */
input[type="range"] {
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    transition: background 0.3s;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background: #3399ff;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #1a73e8;
}

input[type="number"] {
    width: 60px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    text-align: center;
    transition: border-color 0.3s;
}

input[type="number"]:focus {
    border-color: #3399ff;
}
